﻿using System;
using System.Net;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MobiSms.Library
{
    public class CommonClass
    {
        public static bool VerifyMobile(string Mobile)
        {
            string reg = @"^(13[0-9]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9]|147)\d{8}$";
            while (true)
            {
                return Regex.IsMatch(Mobile, reg);
            }
        }
    }
}
